#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtMultimedia/QMediaPlayer>
#include <QListWidgetItem>
#include <QTimer>
#include <QFileDialog>


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void on_b1_clicked();

    void on_Slider2_sliderMoved(int position);

    void on_Slider1_sliderMoved(int position);

    void setSliderValue();

    void on_AddMusic_clicked();

    void on_MusicList_itemDoubleClicked(QListWidgetItem *item);

    void on_b2_clicked();

    void on_b3_clicked();

private:
    Ui::MainWindow *ui;
    QMediaPlayer player;
    QTimer *timer;   // 设置定时器
    QString playPath;
    int PlayRow;

};
#endif // MAINWINDOW_H
